// 题目接口

// 引入axios实例
import request from '@/utils/request'

// 单选
// 获取
export function getSinglesApi() {
  return request({
    url: '/getSingles.do',
    method: 'get'
  })
}
// 添加
export function addSinglesApi(data) {
  return request({
    url: '/addSingle.do',
    method: 'post',
    data: data
  })
}
// 移到回收站
export function softDeleteSingleApi(data) {
  return request({
    url: '/softDeleteSingle.do',
    method: 'post',
    data: data
  })
}
// 删除
export function deleteSingleApi(data) {
  return request({
    url: '/deleteSingle.do',
    method: 'post',
    data: data
  })
}
// 恢复
export function recycleSingleApi(data) {
  return request({
    url: '/recycleSingle.do',
    method: 'post',
    data: data
  })
}
// 修改
export function updateSingleApi(data) {
  return request({
    url: '/updateSingle.do',
    method: 'post',
    data: data
  })
}

// 多选

// 获取
export function getSelectionsApi() {
  return request({
    url: '/getSelections.do',
    method: 'get'
  })
}
// 添加
export function addSelectionApi(data) {
  return request({
    url: '/addSelection.do',
    method: 'post',
    data: data
  })
}
// 移到回收站
export function softDeleteSelectionApi(data) {
  return request({
    url: '/softDeleteSelection.do',
    method: 'post',
    data: data
  })
}
// 删除
export function deleteSelectionApi(data) {
  return request({
    url: '/deleteSelection.do',
    method: 'post',
    data: data
  })
}
// 恢复
export function recycleSelectionApi(data) {
  return request({
    url: '/recycleSelection.do',
    method: 'post',
    data: data
  })
}
// 修改
export function updateSelectionApi(data) {
  return request({
    url: '/updateSelection.do',
    method: 'post',
    data: data
  })
}

// 判断
export function getJudgesApi() {
  return request({
    url: '/getJudges.do',
    method: 'get'
  })
}
// 修改
export function addJudgeApi(data) {
  return request({
    url: '/addJudge.do',
    method: 'post',
    data: data
  })
}
// 移到回收站
export function softDeleteJudgeApi(data) {
  return request({
    url: '/softDeleteJudge.do',
    method: 'post',
    data: data
  })
}
// 删除
export function deleteJudgeApi(data) {
  return request({
    url: '/deleteJudge.do',
    method: 'post',
    data: data
  })
}
// 恢复
export function recycleJudgeApi(data) {
  return request({
    url: '/recycleJudge.do',
    method: 'post',
    data: data
  })
}
// 修改
export function updateJudgeApi(data) {
  return request({
    url: '/updateJudge.do',
    method: 'post',
    data: data
  })
}
